import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { HomeParamList } from '../../types';
import Home from '../../screens/Home/Home';

const Stack = createStackNavigator<HomeParamList>();
const { Navigator, Screen } = Stack

const HomeNavigator = () => (
  <Navigator>
    <Screen
      name="Home"
      component={Home}
      options={{ headerTitle: '主页' }}
    />
  </Navigator>
);

export default HomeNavigator